public class g {
    public static void main(String[] args){
        int[] clubCounts = {20,32,18};
        String[] clubNames = {"bc","dm","zyz"};
        int allTotal = 0;

        System.out.println("各团报名人数:");
        for (int count:clubCounts){
            System.out.println(count + "人");
            allTotal +=count;
        }

        System.out.println("\n 社团名称-报名人数明细：");
        for (int i = 0;i<clubNames.length;i++){
            System.out.println(clubNames[i]+":"+clubCounts[i]+"人");
        }
        System.out.println("\n所有社团报名总人数"+allTotal);
    }
}
